Class {
	#name : 'ClyUnclassifiedMethodsQueryTest',
	#superclass : 'ClyMethodQueryTest',
	#category : 'Calypso-SystemQueries-Tests-Queries',
	#package : 'Calypso-SystemQueries-Tests',
	#tag : 'Queries'
}

{ #category : 'running' }
ClyUnclassifiedMethodsQueryTest >> createQuery [
	^ ClyUnclassifiedMethodsQuery
		from: (ClyClassScope of: ClyClass1FromP1Mock in: environment)
]

{ #category : 'tests' }
ClyUnclassifiedMethodsQueryTest >> testCheckIfEmpty [
	query scope:(ClyMethodScope
		of: ClyClass2FromP1Mock >> #instanceSideClassVar1Reader in: environment).
	self deny: query checkEmptyResult.

	query scope:	(ClyMethodScope of: ClyClass1FromP1Mock >> #tag1Method1 in: environment).
	self assert: query checkEmptyResult
]

{ #category : 'tests' }
ClyUnclassifiedMethodsQueryTest >> testFromThreeMethods [

	self queryFromScope: ClyMethodScope ofAll: {
		ClyClass1FromP1Mock >> #tag1Method1. Object >> #printString.
		ClyClass2FromP1Mock >> #instanceSideClassVar1Reader}.

	self assert: foundSelectors equals: #(instanceSideClassVar1Reader)
]
